package com.xgll.modules.api.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xgll.modules.api.dao.ApiPoints;
import com.xgll.modules.api.entity.Points;

@Service
public class ApiPointsService {
	  @Autowired
	    private ApiPoints pointsDao;
	    public List<Map<String,Object>> queryObject(Integer usr_id) {
	        return pointsDao.queryObject(usr_id);
	    }
	    public List<Map<String,Object>> findgain(Integer usr_id){
	    	 return pointsDao.findgain(usr_id);
	    }
	    public List<Map<String,Object>> findexpend(Integer usr_id){
	    	 return pointsDao.findexpend(usr_id);
	    }
	    public List<Points> getPointsByuid(Integer user_id)
	    {
	  	  return pointsDao.getPointsByuid(user_id);
	    }
	    
	    public List<Points> queryList(Map<String, Object> map) {
	        return pointsDao.queryList(map);
	    }
}
